function page(num) {
	var url = document.URL;
	var pageArray = url.split('?');
	if (pageArray.length > 1) {
		pageArray = url.split('currentPage=');
		if (pageArray.length > 1) {
			url = pageArray[0] + "currentPage=" + num
		} else {
			url += "&page.currentPage=" + num;
		}

	} else {
		url += "?page.currentPage=" + num;
	}

	window.location.href = url;

}